// vue-router
import VueRouter from 'vue-router'
import Vue from "vue";

Vue.use(VueRouter)

import Main from "@/views/Main";
// import Home from '@/views/Home.vue'
// import User from '@/views/User.vue'
// import Mall from "@/views/Mall";
// import PageOne from "@/views/PageOne";
// import PageTwo from "@/views/PageTwo"
import Login from "@/views/Login";
const router = new VueRouter({
        routes: [

            {
                path: '/',
                component: Main,
                name:'main',
                redirect:'/login',
                children: [
                    // {path: 'home', component: Home,name:'home'},//首页
                    // {path: 'user', component: User},//用户管理
                    // {path: 'mall', component: Mall},//商品管理
                    // {path: 'page1', component: PageOne},//page1
                    // {path: 'page2', component: PageTwo},//page2
                ]
            },
            {
                path:'/login',
                component:Login,
                name:'login'
            }
        ]
    }
)



export default router
